<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <title>nodejs之登录注册</title>

</head>



<body>

    <form action="/regist">

        <h1>Regist</h1>

        <label for="">账号:</label>

        <input name="user" type="text" placeholder="请输入账号">

        <br>

        <label for="">密码:</label>

        <input name="psw" type="password" placeholder="请输入密码">

        <br>

        <label for="">重复密码:</label>

        <input name="pswa" type="password" placeholder="请重复密码">

        <br>

        <input type="submit" value="注册">

    </form>



    <br>

    <hr>

    <br>

    <form action="/login" method="POST">

        <h1>Login</h1>

        <label for="">账号:</label>

        <input name="user" type="text" placeholder="请输入账号">

        <br>

        <label for="">密码:</label>

        <input type="password" name="password" placeholder="请输入密码">

        <br>

        <input type="submit" value="登录">

    </form>

</body>

</html>